class displayLayer {
  constructor() {
    //16层显示卷轴
    for (let i = 0; i < Const.MAX_LAYER; i++) {
      app.stage.addChild(new PIXI.Container());
    }
  }
  /*
   *功能：处理所有的显示
  */
  render() {
	for(let objg of game.object_group)
	    for(let i = 0; i < objg.length; i++) {
	      let obj = objg[i];
	
	      //if(obj.state == objectState.AI_BIRTH) {
	        //app.stage.children[obj.modal.layer].addChild(obj.sprite);
	      //}
	
	      if(obj.state > objectState.AI_DEATH)
	    	  obj.render();

	      if(obj.state == objectState.AI_INVALID) {
	        //app.stage.children[obj.modal.layer].removeChild(obj.sprite);
	    	obj.destroy();
	    	objg.splice(i--, 1);
//	    	console.log("destroy : " + obj.modal.classid + " " + obj.modal.vdata.imgfile)
	      }
	      
	      if(obj.state <= objectState.AI_DEATH) {
	    	  obj.state--;
	      }
	    }
  }
}